h1 {
    color: #752A00;
    font-size: 50px;
    text-align: center;
    margin-bottom: 20px;
}

.topContainer {
  display: flex;
  justify-content: center;
}

.topContainer img {
  max-width: 80%; 
  max-height: 50%; 
}


.viewButton {
  border-radius: 5px;
  background-color: white;
  color: #3f1515;
  padding: 10px 72px;
  border: none;
  box-shadow: 0px 2px 1px rgba(0, 0, 0, 0.2);
  bottom: 0;
  margin-bottom: 5px;
  transition: background-color 0.1s ease-in-out;
}

.viewButton:hover {
  background-color: #000000;
  color: #ffffff;
}

.mainContent {
  padding-bottom: 25px;
  justify-content: center;
}
  
.mainContent img {
  max-width: 100%; 
  max-height: 600px; 
  display: block;
  object-fit: cover;
}

.detailContent {
  width: auto;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%/3, max(64px, 100%/4)), 1fr));
  grid-gap: 25px;
  margin: 0 60px;
}

.detailContent .Content-1 {
  background-color: #989898;
}

.detailContent .Content-2 {
  background-color: #393D59;
}

.detailContent .Content-3 {
  background-color: #BD2323;
}

.Content-1, .Content-2, .Content-3 {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Ensures space between content and button */
  height: 100%; /* Ensures container spans the full height */
}

.detailContent .desc {
  margin: 20px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.detailContent .desc h3{
  font-size: 30px;
  color: #FFEFB5;
}

.detailContent .desc p{
  font-size: 25px;
  color: white;
  text-align: justify;
}

.desc {
  flex-grow: 1; /* Allows the description text to take up available space */
}

.detailContent .ContactButton {
  width: 100%;
  border-radius: 5px;
  background-color: white;
  color: #3f1515;
  padding: 10px 72px;
  border: none;
  box-shadow: 0px 2px 1px rgba(0, 0, 0, 0.2);
  bottom: 0;
  margin-bottom: 5px;
}

.ContactButton {
  background-color: #FFFFFF;
  color: black;
  align-self: center; /* Centers the button horizontally */
  margin-top: 10px; /* Adds space between content and button */
  transition: background-color 0.1s ease-in-out;
}

.ContactButton:hover {
  background-color: #000000;
  color: #ffffff;
}

.bottomContainer {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
}

@media (max-width: 1800px) {
    .detailContent {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

@media (max-width: 1250px) {
  .imageBox2{
    display: none;
  }

  .gridBox {
    grid-template-columns: 400px 400px;
  }

  .boxContainer {
    width: 800px;
  }

  .descText {
    text-align: justify;
  }
}

@media (max-width: 800px) {
  .viewButton {
    padding: 10px 0;
    width: 100%;
  }
  

  .imageBox2,.imageBox1{
    display: none;
  }

  .imageBox3{
    width: 100%;
    height: auto;
  }

.mainContent img{
     max-height: 300px; 
}

  .gridBox {
    grid-template-columns: 1fr;
  }

  .boxContainer {
    width: 1fr;
    margin: 0 60px;
    margin-bottom: 30px;
  }

  .descText {
    font-size: 12px;
  }

  .descText h2 {
    font-size: 15px;
  }

  h1 {
    font-size: 30px;
  }

  .detailContent .desc h3{
    font-size: 15px;
  }

  .detailContent .desc p{
    font-size: 12px;
  }

  .detailContent {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 450px) {
  .detailContent button {
    padding: 10px 0px;
  }

  h1 {
    font-size: 20px;
  }

  .descText {
    font-size: 10px;
  }

  .Content-1 img {
    width: 100%;
    height: auto;
  }

  .gridBox {
    grid-template-columns: 1fr;
  }

  .boxContainer {
    width: 1fr;
    margin: 0 60px;
    margin-bottom: 30px;
  }
}